HAL PWR memories retention functions migration

This section provides information about the HAL PWR memories retention functions migration .

HAL PWR enable/Disable SRAM2 content retention

HAL1

HAL2

Function name

  • void HAL_PWREx_DisableSRAM2ContentRetention(void)

  • void HAL_PWR_LP_DisableSRAMContentRetention(void)

Function name

  • void HAL_PWREx_EnableSRAM2ContentRetention(void)

  • void HAL_PWR_LP_EnableSRAMContentRetention(void)


HAL PWR enable/disable analog booster

HAL1

HAL2

Function name

  • void HAL_PWREx_EnableAnalogBooster(void)

  • void HAL_PWR_SetAnalogIOSwitchSupply(void)

Function name

  • void HAL_PWREx_DisableAnalogBooster()

  • void HAL_PWR_SetAnalogIOSwitchSupply(HAL_PWR_ANALOG_IO_SWITCH_BOOSTER_SUPPLY)


HAL PWR enable/disable Bkup RAM retention

HAL1

HAL2

Function name

  • HAL_PWREx_DisableBkupRAMRetention()

  • HAL_PWR_LP_DisableMemoryRetention(HAL_PWR_MEMORY_RETENTION_BKPRAM_STANDBY_VBAT)

Function name

  • HAL_PWREx_EnableBkupRAMRetention()

  • HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_BKPRAM_STANDBY_VBAT)


HAL PWR enable/disable flash power down

HAL1

HAL2

Function name

  • HAL_PWREx_DisableFlashPowerDown(PWR_FLASHPD_LPSLEEP)

  • HAL_PWR_DisableFlashPowerDown(HAL_PWR_FLASH_POWER_DOWN_SLEEP_MODE)

Function name

  • HAL_PWREx_EnableFlashPowerDown(PWR_FLASHPD_LPSLEEP)

  • HAL_PWR_LP_EnableFlashLowPWRMode(HAL_PWR_FLASH_POWER_DOWN_SLEEP_MODE)


HAL PWR Set SRAM2 content retention

HAL1

HAL2

Function name

  • HAL_PWREx_SetSRAM2ContentRetention(PWR_FULL_SRAM2_RETENTION)

  • HAL_PWR_LP_EnableSRAMContentRetention()


HAL PWR enable/disable SRAM3 content retention

HAL1

HAL2

Function name

  • HAL_PWREx_EnableSRAM3ContentRetention(void)

  • HAL_PWR_LP_EnableSRAMContentRetention(void)

Function name

  • HAL_PWREx_DisableSRAM3ContentRetention(void)

  • HAL_PWR_LP_DisableSRAMContentRetention(void)


HAL PWR enable/disable SRAM4 fast wakeup

HAL1

HAL2

Function name

  • HAL_PWREx_DisableSRAM4FastWakeUp()

  • HAL_PWR_LP_DisableMemoryFastWakeup(HAL_PWR_SRAM4_STOP012_FAST_WAKEUP)

Function name

  • HAL_PWREx_EnableSRAM4FastWakeUp()

  • HAL_PWR_LP_EnableMemoryFastWakeup(HAL_PWR_SRAM4_STOP012_FAST_WAKEUP)


HAL PWR enable/disable flash fast wakeup

HAL1

HAL2

Function name

  • HAL_PWREx_DisableFlashFastWakeUp()

  • HAL_PWR_LP_DisableMemoryFastWakeup(HAL_PWR_FLASH_STOP01_FAST_WAKEUP)

Function name

  • HAL_PWREx_EnableFlashFastWakeUp()

  • HAL_PWR_LP_EnableMemoryFastWakeup(HAL_PWR_FLASH_STOP01_FAST_WAKEUP)


HAL PWR enable/disable RAMs content RUN retention

HAL1

HAL2

Function name

  • HAL_PWREx_DisableRAMsContentRunRetention(PWR_SRAM1_FULL_RUN)

  • HAL_PWR_LP_DisableMemoryRetention(HAL_PWR_MEMORY_RETENTION_SRAM1_RUN)

Function name

  • HAL_PWREx_EnableRAMsContentRunRetention(PWR_SRAM1_FULL_RUN)

  • HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_SRAM1_RUN)

Refer to HAL PWR memory retention


HAL PWR enable/disable RAM2 content standby retention

HAL1

HAL2

Function name

  • HAL_PWREx_DisableSRAM2ContentStandbyRetention(PWR_SRAM2_FULL_STANDBY)

  • HAL_PWR_LP_DisableMemoryRetention(HAL_PWR_MEMORY_RETENTION_SRAM2_STOP3_STANDB,page_idx, page_nbr)

Function name

  • HAL_PWREx_EnableSRAM2ContentStandbyRetention(PWR_SRAM2_FULL_STANDBY)

  • HAL_PWR_LP_EnableMemoryPageRetention(HAL_PWR_MEMORY_RETENTION_SRAM2_STOP3_STANDBY,page_idx,page_nbr)

Refer to HAL PWR memory retention


HAL PWR enable/disable RAMs content stop retention

HAL1

HAL2

Function name

  • HAL_PWREx_EnableRAMsContentStopRetention(PWR_SRAM1_FULL_STOP)

  • HAL_PWR_LP_EnableMemoryRetention(HAL_PWR_MEMORY_RETENTION_SRAM1_STOP)

Function name

  • HAL_PWREx_DisableRAMsContentStopRetention(PWR_SRAM1_FULL_STOP)

  • HAL_PWR_LP_DisableMemoryRetention(HAL_PWR_MEMORY_RETENTION_SRAM1_STOP)

Refer to HAL PWR memory retention


HAL PWR enable/disable SRAM retention

HAL1

HAL2

Function name

  • HAL_PWREx_DisableSRAMRetention(void)

  • HAL_PWR_LP_DisableSRAMContentRetention(void)

Function name

  • HAL_PWREx_EnableSRAMRetention(void)

  • HAL_PWR_LP_EnableSRAMContentRetention(void)